home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 2.3 KB | 56 lines | [TEXT/GEOL] |
- Item 1511937 3-Sept-90 13:12PDT
-
- From: PEMD CH DEV PEMD Group, Zurich,IDV
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Drawing Error
-
- Hi Everyone,
-
- Yesterday I sent a memo to Keith on MA 2.0 and 2.01 and in that memo described
- a bug in our application. That description made somewhat more precise was:
-
- -----------------------------------------------------------------------------
- I've also noticed a drawing error and I can't tell for the moment if its in our
- application (probably) or in MacApp. There are multiple windows on the screen
- and let's say they are tiled. It appears that MacApp always updates the active
- window first. After the tiling, a menu operation is chosen which draws
- something, say a line. This line is then not drawn in the currently active
- window, but rather in the last window drawn. This drawing error also occurs
- after a window is zoomed out to the screen size and then zoomed in, causing
- once covered windows to be re-drawn. It occurs in MA 2.0, MA 2.01, but does
- not occur in MA 1.1.1.
-
- It does not occur if the mouse is simply clicked anywhere in the already active
- window before the menu operation is chosen. The underlying data structures for
- the view are correct, because if after the line is incorrectly drawn, a re-draw
- is forced on the windows (e.g. tiled again), the line is drawn in the correct
- window and disappears from the incorrect window. Any suggestions on this one?
- ------------------------------------------------------------------------------
-
-
- I did some experimentation and eliminated the problem by overriding the
- applications Idle method and inserting these two lines of code:
-
- gFrontWindow:=gApplication.GetActiveWindow;
- SetPort(gFrontWindow.fWMgrWindow);
-
- The fix is of course kludgy and actually may not work if the user gets in a
- menu keyboard equivalent before the application can idle. The application's
- code doesn't set any graf ports anywhere else. Is this a bug in MacApp?
-
- This drawing error is preventing us from shipping our MA 2.0 version; we're
- still shipping the MA 1.1.1 version. Any suggestion would be very welcome.
-
- Thanks,
- Ernie Rosenberg
-
- Congiguration:
- Mac IIx with 4MB
- System 6.0.5 under Multifinder
- MPW 3.1 (Pascal)
- MA 2.01
-
-
-